package com.crazy.crazybusinessservice.service.Impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.crazy.crazybusinessservice.VO.TransactionDTO;
import com.crazy.crazybusinessservice.mapper.TransactionMapper;
import com.crazy.crazybusinessservice.service.TransactionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;


@Service
public class TransactionServiceImpl extends ServiceImpl<TransactionMapper, TransactionDTO> implements TransactionService {


    @Autowired
    private TransactionMapper transactionMapper;

    @Override
    public List<TransactionDTO> findTransactionsByFuzzyCriteria(
            String customerName,
            int customerType,
            String customerID,
            int productId,
            String productName,
            int status,
            int transactionType,
            Date begin,
            Date end,
            Long current,
            Long limit
    ) {
        return transactionMapper.findTransactionsByFuzzyCriteria(
                customerName,
                customerType,
                customerID,
                productId,
                productName,
                status,
                transactionType,
                begin,
                end,
                current,
                limit
        );

    }


}
